package io高级流or处理流;

import java.io.*;
import java.nio.charset.StandardCharsets;

/**
 * 字符流都是高级流
 *
 *
 * 转换流
 * 写出new OutputStreamWriter(fol, StandardCharsets.UTF_8);
 * */
public class OSWDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fol = new FileOutputStream("./src/高级流or处理流/uio.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fol, StandardCharsets.UTF_8);
        /**OutputStreamWriter 写出转换流*/
        osw.write("慢慢的面向今天");
        osw.write("泡泡的袜回电话大四的hi核对好");
        osw.close();//关闭高级流会自动关闭低级流
        System.out.println("写出完毕");

    }
}
